{% include "header.html" %}
{% if interaction %}
    <span style="font-family:Times New Roman; font-size:40px;">Refined Analytics</span>
    <table border="0">
    <tr style="background-color:#999;">
        <th>ID</th>
        <th>User correct?</th>
        <th>Time till selection</th>
        <th>User & interaction date/time</th>
    </tr>
    <tr>
        <td>{{ interaction.id }}</td>
        {% if interaction.num_images > 0 %}
        <td>Yes</td>
        {% else %}
        <td>No</td>
        {% endif %}
        <td>{{ interaction.milli }} sec</td>
        <td><a href="/admin/auth/user/{{ interaction.user_id_ref }}/">{{ interaction.ref_user}}</a> ({{ interaction.datetime }})</td>
    </tr>
    <tr style="background-color:#999;">
        <th colspan="2">Selections</th>
        <th colspan="2">Commented Information</th>
    </tr>
    <tr>
        <td colspan="2">{{ interaction.selections }}</td>
        <td colspan="2">{{ interaction.case_info }}</td>
    </tr>
    </table>
{% else %}
    <span style="color:red; font-family:Times New Roman; font-size:40px;">Error</span><br />
    <i>Interaction does not exist, please retry with a smaller number, or got to the analytics homepage <a href="/safc/analytics">here</a>.
{% endif %}
{% include "footer.html" %}
